<?php

class View_Helper_HelperWrapper extends Zend_View_Helper_Abstract
{
    public function helperWrapper($name, $value = null, $attribs = null, $options = null, $listsep = "<br />\n")
    {
        throw new Exception('HelperWrapper has been decprecated...');
        
        $wrapHelper = 'formText';
        $wrapClass = 'input_large';
        
       	if (isset($attribs['wrapHelper'])) {
           $wrapHelper = $attribs['wrapHelper'];
           unset($attribs['wrapHelper']);
        }	
        
        if (isset($attribs['wrapClass'])) {
           $wrapClass = $attribs['wrapClass'];
           unset($attribs['wrapClass']);
        }
        
        $content = $this->view->$wrapHelper($name, $value, $attribs, $options, $listsep);
        return '<div class="' . $wrapClass . '">' . $content . '</div>';
    }
    
}